﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace FMWeb
{
    /// <summary>
    /// Summary description for _interface
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]

    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Interface : System.Web.Services.WebService
    {
        private const string apiKey = "os7erh7p9AMva0s8d"; 

        [WebMethod]
        public void SubmitHighScore(string key, string name, UInt64 highScore)
        {
            if (apiKey == key)
            {
                //add highscore
            }
        }
        /// <summary>
        /// Gets a list of the top high scores.
        /// </summary>
        /// <param name="start"></param>
        /// <param name="count"></param>
        /// <returns></returns>
        [WebMethod]
        public List<Highscore> GetHighScores(int start, int count)
        {
            return new List<Highscore>();
        }
    }

    public class Highscore
    {
        public string name;
        public UInt64 highScore;
    }
}
